<?php get_header(); ?>
<div class="wrap">
	<div class="main">
<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
		<div class="post noline">
			<?php if ( get_the_title() != '' ) : ?>
			<h2><?php the_title(); ?></h2>
			<?php endif;?>
			<?php include("includes/post-info.php"); ?>
			<div class="content">
				<?php the_content(); ?>
				<?php include("includes/author-box.php"); ?>
				<div id="wumiiDisplayDiv"></div>
			</div>
<script type="text/javascript" defer="defer" charset="utf-8">
    (function(d,t) {
      window.huaban_minWidth = 200;
      window.huaban_minHeight = 200;
      var appendScript = function() {
        var a   = d.createElement('script');
        a.id    = 'huaban_share_script';
        a.async = true;
        a.setAttribute('charset','utf-8');
        a.setAttribute('data-position','right bottom');
        a.src   = 'http://huaban.com/js/pinmarklet.js?' + Math.floor(+new Date/1E7);
        var s   = d.getElementsByTagName(t)[0];
        s.parentNode.insertBefore(a, s);
      };
      if (window.attachEvent) {
        window.attachEvent('onload', function(){setTimeout(appendScript, 1000);});
      } else {
        appendScript();
      }
    })(document, 'script');
</script>
			<?php the_tags('<div class="tags">','','</div>'); ?>
			<div class="page-control">
				<?php previous_post_link('<p class="prev">上一篇: %link</p>');?>
				<?php next_post_link('<p class="next">下一篇: %link</p>');?>
			</div>
		</div>
<?php comments_template(); ?>
<?php endif; ?>
	</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>